package com.sihan.framework.etm.mapper.baseData;

import com.framework.mybatis.mapper.BaseMapper;
import com.sihan.framework.etm.dto.EtmDeviceMountDTO;
import com.sihan.framework.etm.dto.baseData.RecordDTO;
import com.sihan.framework.etm.entity.EtmDeviceRecord;
import com.sihan.framework.etm.vo.baseData.DeviceRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EtmDeviceRecordMapper extends BaseMapper<EtmDeviceRecord, String> {

     List<DeviceRecordVO> selectRecorderList(@Param("dtoList") List<RecordDTO> dto);

     List<EtmDeviceMountDTO> queryDeviceRunningDataByDeviceId(
             @Param("deviceId") String deviceId,
             @Param("startTime") String startTime,
             @Param("endTime") String endTime);

     List<EtmDeviceMountDTO> queryDevicePositionDataByDeviceId(
             @Param("deviceId") String deviceId,
             @Param("startTime") String startTime,
             @Param("endTime") String endTime);
}
